package com.light.gulimall.product.feign.fallBack;

import com.light.gulimall.product.feign.SeckillRemoteServiceClient;
import com.light.gulimall.product.to.SecKillSkuRedisTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * product 远程调用 秒杀模块 熔断逻辑
 */
@Slf4j
@Component
public class SeckillRemoteServiceFallBack implements SeckillRemoteServiceClient {
    @Override
    public SecKillSkuRedisTO getCurrentSeckillSkuById(Long skuId) {
        log.info("秒杀服务不可用，触发熔断逻辑");
        return null;
    }
}
